package cn.edu.scau.cmi.wujiacheng.abstractFactory.factory;

import cn.edu.scau.cmi.wujiacheng.domain.Meat;

public abstract class AbstractFactory {
	public static AbstractFactory getMeatFactory(String factoryName)
	{
		AbstractFactory af = null;
		if(factoryName.equals("Wens")) af = new WensFactory();
		else if(factoryName.equals("Tianbang")) af = new TianbangFactory();
		else if(factoryName.equals("Aonong")) af = new AonongFactory();
		return af;
	}
	
	public abstract Meat produce(String meatName);
}
